package cn.ges.movie.controller.test

import com.ges.common.anno.DataBuryPoint
import com.ges.common.service.config.ConfigService
import com.ges.common.vo.ReturnJsonVO
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestMethod
import org.springframework.web.bind.annotation.RestController
import javax.annotation.Resource

/**
 *
 * @author gespent@163.com
 * @date 2021/4/2 16:39
 */
@RestController
open class TestController {

    @Resource
    lateinit var configService: ConfigService

    @DataBuryPoint("")
    @RequestMapping(value = ["/v1/dashboard"], method = [RequestMethod.GET])
    open fun version(): ReturnJsonVO {
        return ReturnJsonVO.success("")
    }

    @DataBuryPoint("")
    @RequestMapping(value = ["/v1/test/"], method = [RequestMethod.GET])
    open fun test1(): ReturnJsonVO {
        return ReturnJsonVO.success(configService.getStringValue(1, ""))
    }
}